FROM python:3
# set work directory
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /opt/petrovich/
# copy project
COPY . /opt/petrovich/
# install dependencies
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
# run app
CMD ["python3", "main.py"]